package com.hqyj.javaSpringBoot.modules.common.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description：CommonController
 * @Author ：Cwd
 * @Date ：2021/8/25 8:54
 */
@Controller
@RequestMapping("/common")
public class CommonController {

    /**
     * 127.0.0.1:8083/common/dashboard ---- get
     * @return
     */
    @GetMapping("/dashboard")
    public String dbPage(){
        return "index";
    }

    /**
     * 127.0.0.1:8083/common/403 ---- get
     * @return
     */
    @GetMapping("/403")
    public String errorPageFor403(){
        return "indexSimple";
    }

    /**
     * 127.0.0.1:8083/common/404
     * @return
     */
    @GetMapping("/404")
    public String errorPageFor404(){
        return "indexSimple";
    }

    /**
     * 127.0.0.1:8083/common/500
     * @return
     */
    @GetMapping("/500")
    public String errorPageFor500(){
        return "indexSimple";
    }
}
